const state={
    imageUpload:[],   //身份验证上传图片的id
    cardFront:{src:'http://file.rzkeji.com/web/recruit/icon/card.png',id:""},       //身份证正面
    cardReverse:{src:'http://file.rzkeji.com/web/recruit/icon/reverseCard.png',id:""},     //身份证反面
    enterpriseFront:{src:'http://file.rzkeji.com/web/recruit/icon/license.png',id:""},   //企业照片
  };
  const mutations={
    setCardFront(state,value){
        state.cardFront=value;
    },
    setCardReverse(state,value){
        state.cardReverse=value;
    },
    setEnterpriseFront(state,value){
        state.enterpriseFront=value;
    },
    setImageUpload(state,value){
        state.imageUpload=value;
    },
  };
  const actions={
    setEnterpriseFront(content,value){
        content.commit('setEnterpriseFront',value)
    },
    cardReverse(content,value){
        content.commit('cardReverse',value)
    },
    setCardFront(content,value){
        content.commit('setCardFront',value)
    },
    setImageUpload(content,value){
        content.commit('setImageUpload',value)
    },
  
  };
   
  // 不要忘记把state, mutations等暴露出去。
  export default {
    state,
    mutations,
    actions
  }